using UnityEngine;
using System.Collections;
using Boomlagoon.JSON;

public class StateDataParser {
	public static void parseStateData (JSONObject stateDataJsonObj , StateDataContainer stateData)
	{
		//JSONObject levelJsonObj = JSONObject.Parse(json);
		stateData.StaticId = stateDataJsonObj.GetString("staticId");
		stateData.StateId = stateDataJsonObj.GetString("stateId");
		stateData.TimestampCreation = (long)stateDataJsonObj.GetNumber("timestampCreation");
		stateData.TimestampUpdate = (long)stateDataJsonObj.GetNumber("timestampUpdate");
	}
}
